// 房屋隐患管理
import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/sample',
  name: 'sample',
  component: LAYOUT,
  redirect: '/sample/sampling',
  meta: {
    orderNo: 203,
    icon: 'ion:bar-chart-outline',
    title: t('routes.demo.sampling.root'),
    roles: ['Admin', 'City', 'Area'],
    userGroups: ['FireControl'],
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'sampling',
      name: 'sampling',
      meta: {
        title: t('routes.demo.sampling.root'),
        hideChildrenInMenu: true,
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['FireControl'],
      },
      component: () => import('/@/views/sampling/task/index.vue'),
      children: [
        {
          path: 'taskhourselist',
          name: 'taskhourselist',
          meta: {
            hideMenu: false,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '任务核验情况',
          },
          component: () => import('/@/views/sampling/task/component/hourselist.vue'),
        },
        {
          path: 'taskbhglist',
          name: 'taskbhglist',
          meta: {
            hideMenu: false,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '任务核验情况',
          },
          component: () => import('/@/views/sampling/task/component/taskbhglist.vue'),
        },
         {
          path: 'taskcunlist',
          name: 'taskcunlist',
          meta: {
            hideMenu: false,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '任务核验情况',
          },
          component: () => import('/@/views/sampling/task/component/cunlist.vue'),
          children: [
         {
          path: 'cunhourselist',
          name: 'cunhourselist',
          meta: {
            hideMenu: false,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '任务核验情况',
          },
          component: () => import('/@/views/sampling/task/component/cunhourselist.vue'),
        }
        ],
        },
      ],
    },
  ],
};

export default charts;
